#ifndef UPDATENEWARTICLELISTRESPONSE_H
#define UPDATENEWARTICLELISTRESPONSE_H

#include "network/networkjsonlistresponse.h"

#include <QObject>
#include <QMap>
#include <QList>

class Article;
class ArticleList;

class UpdateNewArticleListResponse : public Network::JSONResponse
{
    Q_OBJECT
public:
    explicit UpdateNewArticleListResponse(QObject *parent = 0);

    Network::Response::Type type() const;

    inline int idCategory() const {
        return m_idCategory;
    }

    inline int idSource() const {
        return m_idSource;
    }

    inline QList < int64_t > listArticleId() const {
        return m_listArticleId;
    }

    inline QList < Article* > listArticle() const {
        return m_listArticle;
    }

    inline bool checkReplyDataSuccess() const {
        return m_checkReplyDataSuccess;
    }

private:
    void parse(const QVariant &data);

    bool parseSid(const QVariantMap &map);
    bool parseCid(const QVariantMap &map);
    bool parseListArticleId(const QVariantMap &map);
    bool parseListArticle(const QVariantMap &map);

    int m_idCategory;
    int m_idSource;
    QList < int64_t > m_listArticleId;
    QList < Article* > m_listArticle;

    bool m_checkReplyDataSuccess;

};


#endif // UPDATENEWARTICLELISTRESPONSE_H
